#ifndef ITEM_H
#define ITEM_H 1

#include "object.h"
#include "extras.h"

class Item : public Object{
private:
	EffectType effect;
	int rarity;
	int percent_remaining;
public:
	Item() : effect(NO_EFFECT),rarity(0),percent_remaining(100){}
	EffectType Effect(){ return effect; }
	int Rarity(){ return rarity; }
	int Percent(){ return percent_remaining; }
	void ReducePercent(int num){ percent_remaining -= num; }
	void Define(int id_,string name_,char symbol_,int color_,EffectType effect_,int rarity_,int r=-1,int c=-1);
	void CloneSelf(int r,int c,bool give_actor=false);
	void SetPos(int r,int c);
	string AName();
	string TheName();
	bool Use();
	string ShortDesc();
};

#endif

